<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/**
 * @var yii\web\View $this
 * @var yii\widgets\ActiveForm $form
 * @var amnah\yii2\user\models\forms\LoginForm $model
 */

$this->title = Yii::t('user', 'Login');
$this->params['breadcrumbs'][] = $this->title;
?>
<div id="taoban-header" >
    <a href="/">
        <img id="logoImg" alt="工作云,WorkYun,云工作,云平台,云工作平台,搜狗工作云" src="/uploads/logo.png" ng-src="/uploads/logo.png"></a>
</div>
<div class="login-box">

<div class="login-box-body box box-warning">

    <h3><p class="login-box-msg"><?=Yii::t('user','Login')?></p></h3>

    <?php $form = ActiveForm::begin(['id' => 'login-form']); ?>

    <?= $form->field($model, 'email',['template'=>"<div class=\"form-group has-feedback\">{input}<span class=\"glyphicon glyphicon-envelope form-control-feedback\"></span><div class=\"\">{error}</div></div>"])->textInput(['placeholder'=>'用户名/邮箱']) ?>
    <?= $form->field($model, 'password',['template'=>"<div class=\"form-group has-feedback\">{input}<span class=\"glyphicon glyphicon-lock form-control-feedback\"></span><div class=\"\">{error}</div></div>"])->passwordInput(['placeholder'=>'密码']) ?>
    <?= $form->field($model, 'rememberMe', [
        'template' => "{label}<div class=\"form-group\">{input}</div>\n<div class=\"\">{error}</div>",
    ])->checkbox() ?>

    <div class="form-group">
            <?= Html::submitButton(Yii::t('user', 'Login'), ['class' => 'btn btn-primary','style'=>'width:100%']) ?>

    </div>

    <?php ActiveForm::end(); ?>

</div>
</div>
